import {observable,action } from "mobx";

class RootStore{
// ES7 装饰器语法 Object.defineProperty
    @observable

    name =" wukong";
    
    @action
    changeName(name){
        this.name = name;
    }
}

export default new RootStore();